package com.zpark.cloud.alibaba.feign;

import com.zpark.cloud.alibaba.feign.impl.StorageFeignImpl;
import com.zpark.cloud.alibaba.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 库存Feign接口
 */
@FeignClient(value = "${server-name.storage}", fallback = StorageFeignImpl.class)
public interface IStorageFeign {

    @GetMapping("/storage/change/{pid}/{count}")
    ResponseResult<Void> changeStorage(@PathVariable("pid") Long pid, @PathVariable("count") Integer count);
}
